<template>
  <div style="width:1200px; height:900px; background-color: pink;" ref="xe2Container"></div>
</template>

<script setup>
import { onMounted, ref } from 'vue'
import { ESObjectsManager } from "esobjs-xe2-plugin/dist-node/esobjs-xe2-plugin-main";

const xe2Container = ref(null)

const props = defineProps({ objm: ESObjectsManager });

const { objm } = props;

console.log(objm.json)

onMounted(() => {
  if (!xe2Container.value) return;
  window.g_v1 = objm.createCesiumViewer(xe2Container.value, '12345');
})
</script>
